X86: Disable PCID/INVPCID for dom0
authorLiu, Jinsong <jinsong.liu@intel.com>
Thu, 1 Dec 2011 11:22:43 +0000 (12:22 +0100)
committerLiu, Jinsong <jinsong.liu@intel.com>
Thu, 1 Dec 2011 11:22:43 +0000 (12:22 +0100)
commitb0933946291cba0f47f288ad6eb22a3c69321091
tree57ad1ceb1191c8499d105554c351be2826a9852f
parent500161db50e3430026b5374462c1bdac00257abe
X86: Disable PCID/INVPCID for dom0

PCID (Process-context identifier) is a facility by which a logical
processor may cache information for multiple linear-address spaces.
INVPCID is an new instruction to invalidate TLB. Refer latest Intel SDM
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html

We disable PCID/INVPCID for dom0 and pv. Exposing them into dom0 and pv
may result in performance regression, and it would trigger GP or UD
depending on whether platform suppport INVPCID or not.

This patch disables PCID/INVPCID for dom0.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
xen/include/asm-x86/cpufeature.h